import axios from './request'

export const getRoleApi = axios.get('roles')
export const addRoleApi = (data) => axios.post('roles', data)
export const delRoleApi = (id) => axios.delete('roles/'+id)

export const getOneRoleApi = (id) => axios.get('roles/'+id)


export const editRoleApi = ({id,data}) => axios.patch('roles/'+id, data)